//
//  ARButton.h
//  AwesomeRecorder
//
//  Created by Xing on 2019/11/29.
//  Copyright © 2019 Xing. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ARButton : UIButton

@property (nonatomic, assign) CGRect titleRect;


@property (nonatomic, assign) CGRect backgroundRect;


@property (nonatomic, assign) CGRect imageRect;


@property (nonatomic, strong) UIView *backgroundView;


- (void)setBackgroundColor:(UIColor *)color forState:(UIControlState)state;

- (UIColor *)backgroundColorForState:(UIControlState)state;


- (void) setEnabled:(BOOL)enabled;


- (BOOL) isEnabled;



+ (ARButton *)buttonWithFrame:(CGRect)frame;


+ (ARButton *)buttonWithFrame:(CGRect)frame
                    titleRect:(CGRect)titleRect;


+ (ARButton *)buttonWithFrame:(CGRect)frame
                    imageRect:(CGRect)imageRect;

+ (ARButton *)buttonWithFrame:(CGRect)frame
                    titleRect:(CGRect)titleRect
                    imageRect:(CGRect)imageRect;

+ (ARButton *)buttonWithFrame:(CGRect)frame
                    titleRect:(CGRect)titleRect
                    imageRect:(CGRect)imageRect
               backgroundRect:(CGRect)backgroundRect;

@end

NS_ASSUME_NONNULL_END
